package com.meida.module.marketing.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.meida.common.mybatis.annotation.TableAlias;
import com.meida.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 优惠券
 *
 * @author flyme
 * @date 2019-10-22
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("mkg_coupon")
@TableAlias("coupon")
@ApiModel(value = "优惠券对象", description = "优惠券")

public class MkgCoupon extends AbstractEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "couponId", type = IdType.ID_WORKER)
    private Long couponId;


    @ApiModelProperty(value = "奖券标题")
    private String couponTitle;

    @ApiModelProperty(value = "面值")
    private BigDecimal couponPrice;

    @ApiModelProperty(value = "有效开始时间")
    private Date expiryBeginTime;

    @ApiModelProperty(value = "有效截止日期")
    private Date expiryEndTime;

    @ApiModelProperty(value = "使用条件")
    private String useCondition;

    @ApiModelProperty(value = "状态 0禁用 1启用")
    private String state;

    @ApiModelProperty(value = "优惠券类型 1折扣 2满减")
    private String couponType;

    @ApiModelProperty(value = "发放数量")
    private Integer provideNum;


    @ApiModelProperty(value = "剩余数量")
    private Integer surplusNum;

}
